import React from "react";
import BaseComponent from "../../../redare/components/BaseComponent";
import ModalNoAnt from "../ModalNoAnt";
import Logistics from "./Logistics";

export default class LogisticsModal extends BaseComponent{

  state = {
    expressNumber: ''
  };

  static defaultProps = {
    title: '物流信息'
  };

  open(expressNumber){
    this.setState({expressNumber: expressNumber});
    this.modal.show({footer: null});
  }

  render() {
    return (
      <>
        <ModalNoAnt
          title={this.props.title}
          ref={(o)=>{this.modal = o}}
          width="50%"
          bodyStyle={{
            overflowY: "hidden",
            height: '60vh',
          }}
        >
          <Logistics expressNumber={this.state.expressNumber} />
        </ModalNoAnt>
      </>
    );
  }

}